﻿using Global.Core.Helper;

namespace Ducu.BLL.Entity
{
    public class Register: BaseEntity
    {
        public Register()
        {
            _authCode = RandomGenerator.GetNumbers(6);
        }

        public virtual User User { get; set; }
        public virtual string UserName { get; set; }
        public virtual string Password { get; set; }


        //TODO: Don't know why must use this formt but not:
        //public virtual string AuthCode {get; private set;}
        private string _authCode;
        public virtual string AuthCode 
        {
            get { return _authCode; }
        }
    }
}
